package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.product.mapper.BaseTrademarkMapper;
import com.atguigu.gmall.product.model.BaseTrademark;
import com.atguigu.gmall.product.service.BaseTrademarkService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 品牌表 业务实现类
 *
 * @author atguigu
 * @since 2023-04-18
 */
@Service
public class BaseTrademarkServiceImpl extends ServiceImpl<BaseTrademarkMapper, BaseTrademark> implements BaseTrademarkService {
	
	
	@Override
	public IPage<BaseTrademark> baseTrademark(IPage<BaseTrademark> iPage) {
		LambdaQueryWrapper<BaseTrademark> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.orderByDesc(BaseTrademark::getUpdateTime);
		return this.page(iPage,queryWrapper);
	}
}
